#define ROW 100
#define COL 100

void InitAry(int (*Ptr)[COL]);
void PrintAry(int (*Ptr)[COL]);
int main()
{
    int IntAry[ROW][COL];//定义3*3数组
    InitAry(IntAry);//初始化二维数组值
    PrintAry(IntAry);//打印二维数组值
}

void InitAry(int (*Ptr)[COL])
{
    int i,j;
    printf("please input the arrray(3*3):\n");
    for (i=0;i<3;++i)
    {
        for (j=0;j<3;++j)
        {
            scanf("%d",Ptr[i]+j);
        }
    }
}
void PrintAry(int (*Ptr)[COL])
{
    int i,j;
    printf("the value of the array is:\n");
    for (i=0;i<3;++i)
    {
        for (j=0;j<3;++j)
        {
            printf("%d   ",Ptr[i][j]);
        }
        printf("\n");
    }
}